package jp.co.sn.mml.pojo.tsdtkkg;


public class TsdtkkgId implements java.io.Serializable { 

	//混合
	private Long kgCd;
	//結果コード
	private String kkCd;

	/** default constructor */
	public TsdtkkgId(){

	}

	/** full constructor */
	public TsdtkkgId(Long kgCd,String kkCd){
		this.kgCd = kgCd;
		this.kkCd = kkCd;
	}

	//Property accessors
	public Long getKgCd(){
		return this.kgCd;
	}

	public void setKgCd(Long kgCd){
		this.kgCd=kgCd;
	}

	public String getKkCd(){
		return this.kkCd;
	}

	public void setKkCd(String kkCd){
		this.kkCd=kkCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsdtkkgId))
			return false;

		TsdtkkgId castOther = (TsdtkkgId) other;

		return ((this.getKgCd() ==  castOther.getKgCd())
				||(this.getKgCd()!=null && castOther.getKgCd() !=null 
					&& castOther.getKgCd() !=null 
					&& this.getKgCd().equals(castOther.getKgCd())))
			&& ((this.getKkCd() ==  castOther.getKkCd())
				||(this.getKkCd()!=null && castOther.getKkCd() !=null 
					&& castOther.getKkCd() !=null 
					&& this.getKkCd().equals(castOther.getKkCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getKgCd() == null ? 0 : this.getKgCd().hashCode());
		result = 37 * result
				+ (getKkCd() == null ? 0 : this.getKkCd().hashCode());
		return result;
	}

}